package com.jjsj.mall.shop.service;

import com.jjsj.mall.shop.entity.YoshopOrderGoods;

import java.util.List;

/**
 * 订单商品Service接口
 *
 * @author www.joolun.com
 * @date 2022-10-24
 */
public interface IYoshopOrderGoodsService {
    /**
     * 查询订单商品
     *
     * @param orderGoodsId 订单商品ID
     * @return 订单商品
     */
    public YoshopOrderGoods selectYoshopOrderGoodsById(String orderGoodsId);

    /**
     * 查询订单商品列表
     *
     * @param yoshopOrderGoods 订单商品
     * @return 订单商品集合
     */
    public List<YoshopOrderGoods> selectYoshopOrderGoodsList(YoshopOrderGoods yoshopOrderGoods);

    /**
     * 新增订单商品
     *
     * @param yoshopOrderGoods 订单商品
     * @return 结果
     */
    public int insertYoshopOrderGoods(YoshopOrderGoods yoshopOrderGoods);

    /**
     * 修改订单商品
     *
     * @param yoshopOrderGoods 订单商品
     * @return 结果
     */
    public int updateYoshopOrderGoods(YoshopOrderGoods yoshopOrderGoods);

    /**
     * 批量删除订单商品
     *
     * @param orderGoodsIds 需要删除的订单商品ID
     * @return 结果
     */
    public int deleteYoshopOrderGoodsByIds(String[] orderGoodsIds);

    /**
     * 删除订单商品信息
     *
     * @param orderGoodsId 订单商品ID
     * @return 结果
     */
    public int deleteYoshopOrderGoodsById(String orderGoodsId);
}
